import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;


public class test11 
{
	private static int value1;

	public static void main(String[] args) throws IOException 
		{
		System.out.println("Enter the option value");
		BufferedReader brObj= new BufferedReader(new InputStreamReader(System.in));
		String value = brObj.readLine();
		int n = Integer.parseInt(value);
		{
		 for(int a=1;a<=n;a++)
			{
			 for(int i=1;i<=(n-a);i++){
				 System.out.print(" ");
			 }
				for(int i=1,j=1;i<=a;i++)
				{
					System.out.print(a);
				}					
					System.out.println();
				}
		}
}
}
